<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>
        {% for area in arealist %}
            <li>{{ area.title }}</li>
        {% endfor %}
    </ul>

    {% if arealist.has_previous %}
        <a href="/show_area{{ arealist.previous_page_number }}">&lt;</a>
    {% endif %}
    
    {% for page in arealist.paginator.page_range %}
        {% if page == arealist.number %}
            {{ page }}
        {% else %}
            <a href="/show_area{{page}}">{{ page }}</a>
        {% endif %}
    {% endfor %}

    {% if arealist.has_next %}
        <a href="/show_area{{ arealist.next_page_number }}">&gt;</a>
    {% endif %}
</body>
</html>